﻿using EkStudio.com.bean.xml.ProjectMenu;
using EkStudio.com.common.dbconn;
using EkStudio.com.common.session;

namespace EkStudio.Com.UI.Interface
{
    /// <summary>
    /// 根工程实现接口
    /// </summary>
    public interface ProjectRootInterface
    {

        /// <summary>
        /// 用户信息
        /// </summary>
        User UserInfo
        {
            get;
            set;
        }

        HttpConnectUnit Http
        {
            get;
            set;
        }

        /// <summary>
        /// 激活页面的保存状态
        /// </summary>
        /// <returns></returns>
        bool SaveStatus
        {
            get;
            set;
        }
        /// <summary>
        /// 所有页面的保存状态
        /// </summary>
        /// <returns></returns>
        bool SaveAllStatus
        {
            get;
            set;      
        }

        /// <summary>
        /// 保存页面
        /// </summary>
        void save();
        /// <summary>
        /// 保存所有
        /// </summary>
        void saveAll();

        /// <summary>
        /// 激活状态下的单元窗口
        /// </summary>
        ProjectUnitBillInterface ActiveUnitRootPanel
        {
            get;
            set;

        }

        ProjectMenuItem MenuItem
        {
            get;
            set;
        }

        void compileConfig();
        void compileDateBase();
        void downLanguage(string filePath);
        void upLanguage(string filePath);

        void copyBill();

        /// <summary>
        /// 添加日志提示
        /// </summary>
        /// <param name="log"></param>
        void AddConsoleText(string log,bool error);


    }
}
